package com.hzx.service.impl;

import com.hzx.dao.CommodityMapper;
import com.hzx.pojo.Commodity;
import com.hzx.pojo.User;
import com.hzx.service.ShopReleaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ShopReleaseServiceImpl implements ShopReleaseService {

    @Autowired
    CommodityMapper commodityMapper ;

    @Override
    public Integer insertShopReleaseBySelective(Commodity commodity) {
        return commodityMapper.insertSelective(commodity);
    }

    @Override
    public Integer selectIdBySelective(Commodity commodity) {
        return commodityMapper.selectIdBySelective(commodity) ;
    }

    @Override
    public Integer selectIdByUidAndDate(Commodity commodity) {
        return commodityMapper.selectIdByUidAndDate(commodity);
    }

    @Override
    public Integer updateByPrimaryKeySelective(Commodity commodity) {
        return commodityMapper.updateByPrimaryKeySelective(commodity);
    }
}
